import { h } from 'vue';
import { NImage } from 'naive-ui';
import { BasicColumn } from '@/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '序号',
    key: 'id',
    align: "center",
  }, {
    title: '名称',
    key: 'name',
    align: "center",
  }, {
    title: '图片',
    key: 'sitepicture',
    align: "center",
    render(row) {
      return h(
        NImage,
        {
          width: 50,
          height: 50,
          src: row.sitepicture
        },
      );
    },
  },{
    title: '成本价',
    key: 'costprice',
    align: "center",
  },{
    title: '售价',
    key: 'danjia',
    align: "center",
  },{
    title: '代理商',
    key: 'charger_agents_name',
    align: "center",
  },{
    title: '员工',
    key: 'charger_yuangong_name',
    align: "center",
  },{
    title: '商户',
    key: 'charger_bussiness_name',
    align: "center",
  }, {
    title: '创建时间',
    key: 'update_time',
    align: "center",
  },
];
